Transform Conditionals to Polymorphism
نویسندگان
چکیده
Conditionals —i.e., switch statements, nested ifs— that are used to simulate polymorphism hamper evolution and flexibility of applications. The reengineering patterns presented in this paper show you how to transform conditionals in object-oriented code to improve the flexibility of application. This work has been funded by the Swiss Government under Project no. NFS-2000-46947.96 and BBW-96.0015 as well as by the European Union under the ESPRIT program Project no. 21975 (FAMOOS). Copyright© 2000 by Serge Demeyer, Stéphane Ducasse, Oscar Nierstrasz
منابع مشابه
Transform Condit ionals to Polymorphism1
Conditionals —i.e., switch statements, nested ifs— that are used to simulate polymorphism hamper evolution and flexibility of applications. The reengineering patterns presented in this paper show you how to transform conditionals in object-oriented code to improve the flexibility of application. This work has been funded by the Swiss Government under Project no. NFS-2000-46947.96 and BBW-96.001...
متن کاملMaintainability versus Performance: What's the Effect of Introducing Polymorphism ?
The notion of refactoring —transforming the sourcecode of an object-oriented program without changing its external behavior— has been embraced by many objectoriented software developers as a way to accommodate changing requirements. If applied well, refactoring improves the maintainability of the software, however it is believed that it does so at the sake of performance. To investigate this tr...
متن کاملNoticing through Input Enhancement:Does it Affect Learning of the Conditionals?
The purpose of the present study was to determine whether noticing through input enhancement had any impact on the acquisition of English conditional sentences in Iranian EFL learners. Two intact classes with 26 female students in each were chosen. A proficiency test administered at the commencement of the study showed that the two groups were homogeneous in terms of their language proficiency....
متن کاملComprehension of factual, nonfactual, and counterfactual conditionals by Iranian EFL learners
A considerable amount of studies have been established on conditional reasoning supporting mental model theory of propositional reasoning. Mental model theory proposed by Johnson- larid and Byrne is an explanation of someone's thought process about how something occurs in the real world. Conditional reasoning as a kind of reasoning is the way to speak about possibilities or probabilities. The a...
متن کاملWorkshop: Rationality frameworks for conditionals
This workshop brings together philosophers and psychologists and fo-cuses on investigating conditionals from formal and empirical points of views. The topics (listed in alphabetical order) include but are not restricted to: • causality and conditionals • conditional structures • experimental paradigms for conditionals • learning conditionals (i.e., conditionalizing on conditionals) • probabilis...
متن کامل